package com.kuaidi100.sdk.request;

import com.fasterxml.jackson.databind.ObjectMapper;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 商家寄件(官方快递)
 *
 * @Author: api.kuaidi100.com
 * @Date: 2021-03-22 15:29
 */
public class BOrderOfficialQueryPriceReq {
    /**
     * 快递公司编码
     */
    private String kuaidiCom;
    /**
     * 出发地地址，最小颗粒到市级，例如：广东省深圳市
     */
    private String sendManPrintAddr;
    /**
     * 目的地地址，最小颗粒到市级，例如：广东省深圳市
     */
    private String recManPrintAddr;
    /**
     * 重量
     */
    private String weight;
    /**
     * 业务类型
     */
    private String serviceType;

    @Override
    public String toString() {
        try {
            ObjectMapper objectMapper = new ObjectMapper();
            return objectMapper.writeValueAsString(this);
        } catch (Exception e) {
            return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                    .append("kuaidiCom", kuaidiCom)
                    .append("sendManPrintAddr", sendManPrintAddr)
                    .append("recManPrintAddr", recManPrintAddr)
                    .append("weight", weight)
                    .append("serviceType", serviceType)
                    .toString();
        }
    }

    public String getKuaidiCom() {
        return kuaidiCom;
    }

    public void setKuaidiCom(String kuaidiCom) {
        this.kuaidiCom = kuaidiCom;
    }

    public String getSendManPrintAddr() {
        return sendManPrintAddr;
    }

    public void setSendManPrintAddr(String sendManPrintAddr) {
        this.sendManPrintAddr = sendManPrintAddr;
    }

    public String getRecManPrintAddr() {
        return recManPrintAddr;
    }

    public void setRecManPrintAddr(String recManPrintAddr) {
        this.recManPrintAddr = recManPrintAddr;
    }

    public String getWeight() {
        return weight;
    }

    public void setWeight(String weight) {
        this.weight = weight;
    }

    public String getServiceType() {
        return serviceType;
    }

    public void setServiceType(String serviceType) {
        this.serviceType = serviceType;
    }
}
